package com.yumeng.framework.core.base.controller;

import com.yumeng.common.api.ApiResult;
import com.yumeng.common.data.annotations.OperationLogIgnore;
import com.yumeng.common.helper.BaseEnumHelper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wxd
 * @date 2024/6/5 上午11:01
 */
@RestController
@RequestMapping("/ym/frame")
@OperationLogIgnore
@Tag(name = "框架Controller", description = "通用的框架层面的接口集合")
public class YumengFrameController {

    @Operation(summary = "获取BaseEnum列表")
    @GetMapping("/enums.do")
    public ApiResult enumList() {
        return ApiResult.successData(BaseEnumHelper.getBaseEnumMap());
    }


}
